-- GENERATED SPELL FOR [Librarian Belleford] --


function spell0_32374(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(17290,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32374', 3000, 1)
end

function spell1_32374(pUnit, Event) --@Frost Armor,Self--
pUnit:FullCastSpellOnTarget(12544,pUnit)
pUnit:RegisterEvent('Sorts_32374', 0, 1)
end

function Sorts_32374(pUnit, Event)
local choix_sorts_32374 = math.random(0, 1)
if choix_sorts_32374 == 0 then
pUnit:RegisterEvent('spell0_32374', 1, 1)
end
if choix_sorts_32374 == 1 then
pUnit:RegisterEvent('spell1_32374', 1, 1)
end
end

function mob32374_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32374', math.random(1500, 3000), 1)
end

function mob32374_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32374_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32374_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32374, 1, 'mob32374_Action')
RegisterUnitEvent(32374, 2, 'mob32374_Leave')
RegisterUnitEvent(32374, 3, 'mob32374_Kill')
RegisterUnitEvent(32374, 4, 'mob32374_Die')
